<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html>
<head>
    <script language="javascript">
        /* 函数定义 */
        function check() {
            if (tuser.accountNumber.value == "") {
                window.alert("账号不能为空!");
            }
            else if (tuser.passWd.value == "") {
                window.alert("密码不能为空!");
            }
            else {
                tuser.action="<%=request.getContextPath()%>MainInterface";
                tuser.submit();
            }
        }
        /* 函数调用 */
    </script>
    <style type="text/css">
        body {
            background: url(背景7.jpg) no-repeat center center fixed;
            background-size: cover;
            min-height: 100vh;
            box-sizing: border-box;
            margin: 0;
            padding-top: calc(50vh - 6em);
            font: 150%/1.6 Baskerville, Palatino, serif;
        }

        .description{
            position: relative;
            margin: 0 auto;
            padding: 1em;
            max-width: 23em;
            background: hsla(0,0%,100%,.25) border-box;
            overflow: hidden;
            border-radius: .3em;
            box-shadow: 0 0 0 1px hsla(0,0%,100%,.3) inset,
            0 .5em 1em rgba(0, 0, 0, 0.6);
            text-shadow: 0 1px 1px hsla(0,0%,100%,.3);
        }

        .description::before{
            content: '';
            position: absolute;
            top: 0; right: 0; bottom: 0; left: 0;
            margin: -30px;
            z-index: -1;
            -webkit-filter: blur(20px);
            filter: blur(20px);
        }
    </style>
</head>
<center>
    <body>

    <h2>添加用户</h2>
    <!--表单提交目标链接和方法post-->

    <form method="post" id="tuser">
        <p class="description">
        <table>
            <tr>
                <td>账号</td>
                <td><input type="text" name="accountNumber"/></td>
            </tr>
            <tr></tr><tr></tr><tr></tr>
            <tr>
                <td>密码</td>
                <td><input type="text" name="passWd"/></td>
            </tr>
            <tr></tr><tr></tr><tr></tr>
        </table>
        <table>
            <tr>
                <td><input type="submit" value="提交" onclick="check()"/></td>
                <td><input type="reset" value="重置"/></td>
            </tr>
        </table>
        </p>
    </form>

    </body>
</center>
</html>
